package com.sz.biz.common.customer.dto;

/**
 * Function: TODO: ADD FUNCTION <br>
 * Author: Johnboy <br>
 * Date: 2017-08-29 08:50:00
 */
public enum CustomerNoticeMessageStatus {
    FAIL("101","发送失败"),
    SUCCESS("102","发送成功"),
    SENDING("103","正在发送");


    private String code ;
    private String name;

    public static CustomerNoticeMessageStatus valueOfEnum(String code) {
        CustomerNoticeMessageStatus[] iss = values();
        for (CustomerNoticeMessageStatus cs : iss) {
            if (cs.getCode().equals(code)) {
                return cs;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    CustomerNoticeMessageStatus(String code, String name) {
        this.code = code;
        this.name = name;
    }
}
